'use strict'
module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
  outputDir: 'dist',
  devServer: {
    host: '0.0.0.0',
    port: 8080,
    open: true,
    proxy: {     
      "/api": {
        target: 'http://120.26.240.98:8080',
        // target: 'http://a8rvy4.natappfree.cc',
        secure: false,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        },
      }
    },
    disableHostCheck: true
  },
}
